-
Notifications
You must be signed in to change notification settings - Fork 6
Make TAP devices usable in normal traffic scenarios #649
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Hmm lookoing at what this does, it seems to me it would be much better to simply ask for config and then either call |
|
Sure. I can change it that way. I am testing now whether it helps at all. If so, will improve the code. |
709b4e5 to
5d42f11
Compare
5d42f11 to
6e3f72c
Compare
5e2121f to
5ca89bb
Compare
PlagueCZ
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If any of this PR was verified by pytest, please note that it is currently unable to detect some errors: #650
Maybe rebase and test on some older commit first.
Python Checksum checks seem to fail. Will ignore for the time-being. Signed-off-by: Guvenc Gulce <[email protected]>
5ca89bb to
49ce2d0
Compare
This is the FeBox case and it is ok to have the own MAC as the neighbour MAC in case of TAP device mode. Signed-off-by: Guvenc Gulce <[email protected]>
49ce2d0 to
b39a89b
Compare
PlagueCZ
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This now looks really nice. The OSC virtual lab can be adapted once I have something to work with.
| } | ||
| // If it is a tap device, we make an exception with own MAC address check. FeBOX case | ||
| if (dp_conf_is_tap_mode()) | ||
| return DP_OK; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ooh nice solution. So basically for TAP you accept the own mac here as you wanted and if we ever need a true neighbor mac it can be easily changed here, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would already accept true neighbor MAC. It just can not differentiate the "error case" anymore when it is in TAP mode. (Error case being "the router sending TAP device MAC as router MAC")
Make TAP devices usable in normal traffic scenarios and not only pytest based test scenarios where MAC addresses and checksums can be ignored if not directly effecting the testing scenario.